#include "matrixfunctions.h" 
#include "vectorfunctions.h"

int main()
{
	int mat[100][100];
	int row, col, i, j, n;
	cout<<"Number of rows : ";
	cin>>row;
	cout<<"Number of columns : ";
	cin>>col;
	readmatrix(mat, row, col);
	for(j=0; j<col; j++){
		n=0;
		for(i=0; i<row; i++){
			n += mat[i][j]*power(2, row-i-1);	
		}
		cout<<n<<" ";
	}
	cout<<":) "<<endl;
return 0;
}
